<?php
$message = $_POST['message'];

$file = fopen("../log.txt", 'a');
fwrite($file, $message);
fclose($file);